package com.ykj.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *       state 1-板块 2-帖子
 * </p>
 *
 * @author Y2014188432
 * @since 2022-05-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Collect implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 板块id
     */
    private Integer plateId;

    /**
     * 帖子id
     */
    private Integer postsId;

    /**
     * 1-板块 2-帖子
     */
    private String type;

    /**
     * 0-取消 1-收藏
     */
    private String state;


}
